package com.jzqf.canvas;

import android.graphics.Color;

import java.util.Random;

public class ColorUtil {

    public static int randomColor() {
        Random random = new Random();
        int a = random.nextInt(256);
        int r = random.nextInt(256);
        int g = random.nextInt(256);
        int b = random.nextInt(256);
//        return Color.rgb(r, g, b);
        return Color.argb(a, r, g, b);
    }

}
